﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="T2.WebSecurity.Business.Workflows.ApplicationNonQuery"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:s="clr-namespace:System;assembly=mscorlib"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:twb="clr-namespace:T2.WebSecurity.Business;assembly=T2.WebSecurity.Business.Entities"
 xmlns:twbei="clr-namespace:T2.WebSecurity.Business.Entities.Interfaces;assembly=T2.WebSecurity.Business.Entities"
 xmlns:twbesi="clr-namespace:T2.WebSecurity.Business.Entities.Search.Interfaces;assembly=T2.WebSecurity.Business.Entities"
 xmlns:twbwa="clr-namespace:T2.WebSecurity.Business.Workflow.Activites;assembly=T2.WebSecurity.Business.Workflow.Activities"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="BusinessService" Type="InArgument(twb:IBusinessService)" />
    <x:Property Name="UserName" Type="InArgument(x:String)" />
    <x:Property Name="Param" Type="InArgument(twbei:IApplication_biz)" />
    <x:Property Name="RetVal" Type="OutArgument(scg:IDictionary(x:String, x:Int32))" />
    <x:Property Name="RoleNames" Type="InArgument(s:String[])" />
    <x:Property Name="Ex" Type="OutArgument(s:Exception)" />
    <x:Property Name="ValidationMessage" Type="OutArgument(x:String)" />
  </x:Members>
  <sap2010:ExpressionActivityEditor.ExpressionActivityEditor>C#</sap2010:ExpressionActivityEditor.ExpressionActivityEditor>
  <sap2010:WorkflowViewState.IdRef>T2.WebSecurity.Business.Workflows.ApplicationController_1</sap2010:WorkflowViewState.IdRef>
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Linq</x:String>
      <x:String>System.Text</x:String>
      <x:String>T2.WebSecurity.Business</x:String>
      <x:String>T2.WebSecurity.Business.Entities.Interfaces</x:String>
      <x:String>T2.WebSecurity.Business.Entities.Search.Interfaces</x:String>
      <x:String>T2.WebSecurity.Business.Entities.Search</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>EntityFramework</AssemblyReference>
      <AssemblyReference>Microsoft.Practices.EnterpriseLibrary.Common</AssemblyReference>
      <AssemblyReference>Microsoft.Practices.EnterpriseLibrary.Data</AssemblyReference>
      <AssemblyReference>Microsoft.Practices.EnterpriseLibrary.Logging</AssemblyReference>
      <AssemblyReference>Microsoft.Practices.EnterpriseLibrary.Logging.Database</AssemblyReference>
      <AssemblyReference>Microsoft.Practices.EnterpriseLibrary.Validation</AssemblyReference>
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Configuration</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.Drawing</AssemblyReference>
      <AssemblyReference>System.Management</AssemblyReference>
      <AssemblyReference>System.ServiceModel</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.Transactions</AssemblyReference>
      <AssemblyReference>System.Web</AssemblyReference>
      <AssemblyReference>System.Web.ApplicationServices</AssemblyReference>
      <AssemblyReference>System.Web.Providers</AssemblyReference>
      <AssemblyReference>System.Web.Services</AssemblyReference>
      <AssemblyReference>System.Workflow.Activities</AssemblyReference>
      <AssemblyReference>System.Workflow.ComponentModel</AssemblyReference>
      <AssemblyReference>System.Workflow.Runtime</AssemblyReference>
      <AssemblyReference>System.WorkflowServices</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
      <AssemblyReference>Microsoft.CSharp</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>WebMatrix.WebData</AssemblyReference>
      <AssemblyReference>T2.WebSecurity.Business.Entities</AssemblyReference>
      <AssemblyReference>T2.WebSecurity.Business.Workflow.Activities</AssemblyReference>
      <AssemblyReference>T2.WebSecurity.Common</AssemblyReference>
      <AssemblyReference>T2.WebSecurity.Data</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>T2.WebSecurity.Business</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <Flowchart sap2010:WorkflowViewState.IdRef="Flowchart_1">
    <Flowchart.Variables>
      <Variable x:TypeArguments="twbei:IApplicationProfileData_biz[]" Name="profileDataParams" />
      <Variable x:TypeArguments="twbei:IApplicationUser_biz[]" Name="userParams" />
      <Variable x:TypeArguments="twbei:IApplicationRoles_biz[]" Name="rolesParams" />
    </Flowchart.Variables>
    <Flowchart.StartNode>
      <FlowDecision x:Name="__ReferenceID0" DisplayName="IsSuperAdmin" sap2010:WorkflowViewState.IdRef="FlowDecision_1">
        <FlowDecision.Condition>
          <mca:CSharpValue x:TypeArguments="x:Boolean">RoleNames.Contains("super admin")</mca:CSharpValue>
        </FlowDecision.Condition>
        <FlowDecision.True>
          <FlowSwitch x:TypeArguments="x:String" x:Name="__ReferenceID1" sap2010:WorkflowViewState.IdRef="FlowSwitch`1_1">
            <FlowSwitch.Expression>
              <mca:CSharpValue x:TypeArguments="x:String">Param.Action</mca:CSharpValue>
            </FlowSwitch.Expression>
            <FlowStep x:Key="Remove" x:Name="__ReferenceID3" sap2010:WorkflowViewState.IdRef="FlowStep_10">
              <TransactionScope sap2010:WorkflowViewState.IdRef="TransactionScope_1">
                <Sequence DisplayName="Remove Sequence" sap2010:WorkflowViewState.IdRef="Sequence_21">
                  <twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll DisplayName="ApplicationUser_GetAll" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_ApplicationUser_GetAll_3">
                    <twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.BS>
                      <InArgument x:TypeArguments="twb:IBusinessService">
                        <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                      </InArgument>
                    </twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.BS>
                    <twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.RetVal>
                      <OutArgument x:TypeArguments="twbei:IApplicationUser_biz[]">
                        <mca:CSharpReference x:TypeArguments="twbei:IApplicationUser_biz[]">userParams</mca:CSharpReference>
                      </OutArgument>
                    </twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.RetVal>
                  </twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll>
                  <Assign DisplayName="Filter AppUsers" sap2010:WorkflowViewState.IdRef="Assign_13">
                    <Assign.To>
                      <OutArgument x:TypeArguments="twbei:IApplicationUser_biz[]">
                        <mca:CSharpReference x:TypeArguments="twbei:IApplicationUser_biz[]">userParams</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="twbei:IApplicationUser_biz[]">
                        <mca:CSharpValue x:TypeArguments="twbei:IApplicationUser_biz[]">userParams.Where(f=&gt;f.ApplicationID==Param.ApplicationID).ToArray()</mca:CSharpValue>
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                  <ForEach x:TypeArguments="twbei:IApplicationUser_biz" DisplayName="ForEach&lt;IApplicationUser_biz&gt;" sap2010:WorkflowViewState.IdRef="ForEach`1_9">
                    <ForEach.Values>
                      <InArgument x:TypeArguments="scg:IEnumerable(twbei:IApplicationUser_biz)">
                        <mca:CSharpValue x:TypeArguments="scg:IEnumerable(twbei:IApplicationUser_biz)">userParams</mca:CSharpValue>
                      </InArgument>
                    </ForEach.Values>
                    <ActivityAction x:TypeArguments="twbei:IApplicationUser_biz">
                      <ActivityAction.Argument>
                        <DelegateInArgument x:TypeArguments="twbei:IApplicationUser_biz" Name="item" />
                      </ActivityAction.Argument>
                      <Sequence sap2010:WorkflowViewState.IdRef="Sequence_16">
                        <If sap2010:WorkflowViewState.IdRef="If_7">
                          <If.Condition>
                            <InArgument x:TypeArguments="x:Boolean">
                              <mca:CSharpValue x:TypeArguments="x:Boolean">item!=null</mca:CSharpValue>
                            </InArgument>
                          </If.Condition>
                          <If.Then>
                            <Sequence DisplayName="Remove Sequence" sap2010:WorkflowViewState.IdRef="Sequence_15">
                              <Assign sap2010:WorkflowViewState.IdRef="Assign_14">
                                <Assign.To>
                                  <OutArgument x:TypeArguments="x:String">
                                    <mca:CSharpReference x:TypeArguments="x:String">item.Action</mca:CSharpReference>
                                  </OutArgument>
                                </Assign.To>
                                <Assign.Value>
                                  <InArgument x:TypeArguments="x:String">Remove</InArgument>
                                </Assign.Value>
                              </Assign>
                              <twbwa:Db_T2_WebSecurity_ApplicationUser_Remove RetVal="{x:Null}" DisplayName="ApplicationUser_Remove" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_ApplicationUser_Remove_3">
                                <twbwa:Db_T2_WebSecurity_ApplicationUser_Remove.BS>
                                  <InArgument x:TypeArguments="twb:IBusinessService">
                                    <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                                  </InArgument>
                                </twbwa:Db_T2_WebSecurity_ApplicationUser_Remove.BS>
                                <twbwa:Db_T2_WebSecurity_ApplicationUser_Remove.RemoveParam>
                                  <InArgument x:TypeArguments="twbei:IApplicationUser_biz">
                                    <mca:CSharpValue x:TypeArguments="twbei:IApplicationUser_biz">item</mca:CSharpValue>
                                  </InArgument>
                                </twbwa:Db_T2_WebSecurity_ApplicationUser_Remove.RemoveParam>
                              </twbwa:Db_T2_WebSecurity_ApplicationUser_Remove>
                            </Sequence>
                          </If.Then>
                        </If>
                      </Sequence>
                    </ActivityAction>
                  </ForEach>
                  <twbwa:Db_T2_WebSecurity_ApplicationRoles_GetAll DisplayName="ApplicationRoles_GetAll" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_ApplicationRoles_GetAll_1">
                    <twbwa:Db_T2_WebSecurity_ApplicationRoles_GetAll.BS>
                      <InArgument x:TypeArguments="twb:IBusinessService">
                        <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                      </InArgument>
                    </twbwa:Db_T2_WebSecurity_ApplicationRoles_GetAll.BS>
                    <twbwa:Db_T2_WebSecurity_ApplicationRoles_GetAll.RetVal>
                      <OutArgument x:TypeArguments="twbei:IApplicationRoles_biz[]">
                        <mca:CSharpReference x:TypeArguments="twbei:IApplicationRoles_biz[]">rolesParams</mca:CSharpReference>
                      </OutArgument>
                    </twbwa:Db_T2_WebSecurity_ApplicationRoles_GetAll.RetVal>
                  </twbwa:Db_T2_WebSecurity_ApplicationRoles_GetAll>
                  <Assign DisplayName="Filter AppRoles" sap2010:WorkflowViewState.IdRef="Assign_15">
                    <Assign.To>
                      <OutArgument x:TypeArguments="twbei:IApplicationRoles_biz[]">
                        <mca:CSharpReference x:TypeArguments="twbei:IApplicationRoles_biz[]">rolesParams</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="twbei:IApplicationRoles_biz[]">
                        <mca:CSharpValue x:TypeArguments="twbei:IApplicationRoles_biz[]">rolesParams.Where(f =&gt; f.ApplicationID == Param.ApplicationID).ToArray()</mca:CSharpValue>
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                  <ForEach x:TypeArguments="twbei:IApplicationRoles_biz" DisplayName="ForEach&lt;IApplicationRoles_biz&gt;" sap2010:WorkflowViewState.IdRef="ForEach`1_10">
                    <ForEach.Values>
                      <InArgument x:TypeArguments="scg:IEnumerable(twbei:IApplicationRoles_biz)">
                        <mca:CSharpValue x:TypeArguments="scg:IEnumerable(twbei:IApplicationRoles_biz)">rolesParams</mca:CSharpValue>
                      </InArgument>
                    </ForEach.Values>
                    <ActivityAction x:TypeArguments="twbei:IApplicationRoles_biz">
                      <ActivityAction.Argument>
                        <DelegateInArgument x:TypeArguments="twbei:IApplicationRoles_biz" Name="item" />
                      </ActivityAction.Argument>
                      <Sequence sap2010:WorkflowViewState.IdRef="Sequence_18">
                        <If sap2010:WorkflowViewState.IdRef="If_8">
                          <If.Condition>
                            <InArgument x:TypeArguments="x:Boolean">
                              <mca:CSharpValue x:TypeArguments="x:Boolean">item!=null</mca:CSharpValue>
                            </InArgument>
                          </If.Condition>
                          <If.Then>
                            <Sequence DisplayName="Remove Sequence" sap2010:WorkflowViewState.IdRef="Sequence_17">
                              <Assign sap2010:WorkflowViewState.IdRef="Assign_16">
                                <Assign.To>
                                  <OutArgument x:TypeArguments="x:String">
                                    <mca:CSharpReference x:TypeArguments="x:String">item.Action</mca:CSharpReference>
                                  </OutArgument>
                                </Assign.To>
                                <Assign.Value>
                                  <InArgument x:TypeArguments="x:String">Remove</InArgument>
                                </Assign.Value>
                              </Assign>
                              <twbwa:Db_T2_WebSecurity_ApplicationRoles_Remove RetVal="{x:Null}" DisplayName="ApplicationRoles_Remove" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_ApplicationRoles_Remove_3">
                                <twbwa:Db_T2_WebSecurity_ApplicationRoles_Remove.BS>
                                  <InArgument x:TypeArguments="twb:IBusinessService">
                                    <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                                  </InArgument>
                                </twbwa:Db_T2_WebSecurity_ApplicationRoles_Remove.BS>
                                <twbwa:Db_T2_WebSecurity_ApplicationRoles_Remove.RemoveParam>
                                  <InArgument x:TypeArguments="twbei:IApplicationRoles_biz">
                                    <mca:CSharpValue x:TypeArguments="twbei:IApplicationRoles_biz">item</mca:CSharpValue>
                                  </InArgument>
                                </twbwa:Db_T2_WebSecurity_ApplicationRoles_Remove.RemoveParam>
                              </twbwa:Db_T2_WebSecurity_ApplicationRoles_Remove>
                            </Sequence>
                          </If.Then>
                        </If>
                      </Sequence>
                    </ActivityAction>
                  </ForEach>
                  <twbwa:Db_T2_WebSecurity_ApplicationProfileData_GetAll DisplayName="ApplicationProfileData_GetAll" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_ApplicationProfileData_GetAll_1">
                    <twbwa:Db_T2_WebSecurity_ApplicationProfileData_GetAll.BS>
                      <InArgument x:TypeArguments="twb:IBusinessService">
                        <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                      </InArgument>
                    </twbwa:Db_T2_WebSecurity_ApplicationProfileData_GetAll.BS>
                    <twbwa:Db_T2_WebSecurity_ApplicationProfileData_GetAll.RetVal>
                      <OutArgument x:TypeArguments="twbei:IApplicationProfileData_biz[]">
                        <mca:CSharpReference x:TypeArguments="twbei:IApplicationProfileData_biz[]">profileDataParams</mca:CSharpReference>
                      </OutArgument>
                    </twbwa:Db_T2_WebSecurity_ApplicationProfileData_GetAll.RetVal>
                  </twbwa:Db_T2_WebSecurity_ApplicationProfileData_GetAll>
                  <Assign DisplayName="Filter AppProfile" sap2010:WorkflowViewState.IdRef="Assign_17">
                    <Assign.To>
                      <OutArgument x:TypeArguments="twbei:IApplicationProfileData_biz[]">
                        <mca:CSharpReference x:TypeArguments="twbei:IApplicationProfileData_biz[]">profileDataParams</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="twbei:IApplicationProfileData_biz[]">
                        <mca:CSharpValue x:TypeArguments="twbei:IApplicationProfileData_biz[]">profileDataParams.Where(f =&gt; f.ApplicationID == Param.ApplicationID).ToArray()</mca:CSharpValue>
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                  <ForEach x:TypeArguments="twbei:IApplicationProfileData_biz" DisplayName="ForEach&lt;IApplicationProfileData_biz&gt;" sap2010:WorkflowViewState.IdRef="ForEach`1_11">
                    <ForEach.Values>
                      <InArgument x:TypeArguments="scg:IEnumerable(twbei:IApplicationProfileData_biz)">
                        <mca:CSharpValue x:TypeArguments="scg:IEnumerable(twbei:IApplicationProfileData_biz)">profileDataParams</mca:CSharpValue>
                      </InArgument>
                    </ForEach.Values>
                    <ActivityAction x:TypeArguments="twbei:IApplicationProfileData_biz">
                      <ActivityAction.Argument>
                        <DelegateInArgument x:TypeArguments="twbei:IApplicationProfileData_biz" Name="item" />
                      </ActivityAction.Argument>
                      <Sequence sap2010:WorkflowViewState.IdRef="Sequence_20">
                        <If sap2010:WorkflowViewState.IdRef="If_9">
                          <If.Condition>
                            <InArgument x:TypeArguments="x:Boolean">
                              <mca:CSharpValue x:TypeArguments="x:Boolean">item!=null</mca:CSharpValue>
                            </InArgument>
                          </If.Condition>
                          <If.Then>
                            <Sequence DisplayName="Remove Sequence" sap2010:WorkflowViewState.IdRef="Sequence_19">
                              <Assign sap2010:WorkflowViewState.IdRef="Assign_18">
                                <Assign.To>
                                  <OutArgument x:TypeArguments="x:String">
                                    <mca:CSharpReference x:TypeArguments="x:String">item.Action</mca:CSharpReference>
                                  </OutArgument>
                                </Assign.To>
                                <Assign.Value>
                                  <InArgument x:TypeArguments="x:String">Remove</InArgument>
                                </Assign.Value>
                              </Assign>
                              <twbwa:Db_T2_WebSecurity_ApplicationProfileData_Remove RetVal="{x:Null}" DisplayName="ApplicationProfileData_Remove" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_ApplicationProfileData_Remove_3">
                                <twbwa:Db_T2_WebSecurity_ApplicationProfileData_Remove.BS>
                                  <InArgument x:TypeArguments="twb:IBusinessService">
                                    <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                                  </InArgument>
                                </twbwa:Db_T2_WebSecurity_ApplicationProfileData_Remove.BS>
                                <twbwa:Db_T2_WebSecurity_ApplicationProfileData_Remove.RemoveParam>
                                  <InArgument x:TypeArguments="twbei:IApplicationProfileData_biz">
                                    <mca:CSharpValue x:TypeArguments="twbei:IApplicationProfileData_biz">item</mca:CSharpValue>
                                  </InArgument>
                                </twbwa:Db_T2_WebSecurity_ApplicationProfileData_Remove.RemoveParam>
                              </twbwa:Db_T2_WebSecurity_ApplicationProfileData_Remove>
                            </Sequence>
                          </If.Then>
                        </If>
                      </Sequence>
                    </ActivityAction>
                  </ForEach>
                  <twbwa:Db_T2_WebSecurity_Application_Remove DisplayName="Application_Remove" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_Application_Remove_4">
                    <twbwa:Db_T2_WebSecurity_Application_Remove.BS>
                      <InArgument x:TypeArguments="twb:IBusinessService">
                        <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                      </InArgument>
                    </twbwa:Db_T2_WebSecurity_Application_Remove.BS>
                    <twbwa:Db_T2_WebSecurity_Application_Remove.RemoveParam>
                      <InArgument x:TypeArguments="twbei:IApplication_biz">
                        <mca:CSharpValue x:TypeArguments="twbei:IApplication_biz">Param</mca:CSharpValue>
                      </InArgument>
                    </twbwa:Db_T2_WebSecurity_Application_Remove.RemoveParam>
                    <twbwa:Db_T2_WebSecurity_Application_Remove.RetVal>
                      <OutArgument x:TypeArguments="scg:IDictionary(x:String, x:Int32)">
                        <mca:CSharpReference x:TypeArguments="scg:IDictionary(x:String, x:Int32)">RetVal</mca:CSharpReference>
                      </OutArgument>
                    </twbwa:Db_T2_WebSecurity_Application_Remove.RetVal>
                  </twbwa:Db_T2_WebSecurity_Application_Remove>
                </Sequence>
              </TransactionScope>
            </FlowStep>
            <FlowStep x:Key="Add" x:Name="__ReferenceID4" sap2010:WorkflowViewState.IdRef="FlowStep_11">
              <Sequence DisplayName="Add Sequence" sap2010:WorkflowViewState.IdRef="Sequence_22">
                <Sequence.Variables>
                  <Variable x:TypeArguments="twbei:IApplication_biz[]" Name="applicationParams" />
                </Sequence.Variables>
                <twbwa:Db_T2_WebSecurity_Application_Search DisplayName="Application_Search" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_Application_Search_1">
                  <twbwa:Db_T2_WebSecurity_Application_Search.BS>
                    <InArgument x:TypeArguments="twb:IBusinessService">
                      <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_Application_Search.BS>
                  <twbwa:Db_T2_WebSecurity_Application_Search.RetVal>
                    <OutArgument x:TypeArguments="twbei:IApplication_biz[]">
                      <mca:CSharpReference x:TypeArguments="twbei:IApplication_biz[]">applicationParams</mca:CSharpReference>
                    </OutArgument>
                  </twbwa:Db_T2_WebSecurity_Application_Search.RetVal>
                  <twbwa:Db_T2_WebSecurity_Application_Search.SearchParam>
                    <InArgument x:TypeArguments="twbesi:IApplicationSearch_biz">
                      <mca:CSharpValue x:TypeArguments="twbesi:IApplicationSearch_biz">new ApplicationSearch_biz(){ Action="Search", ApplicationName=Param.ApplicationName, PageNumber=1, PageSize=10, SortColumn= "ApplicationID", SortType="asc"}</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_Application_Search.SearchParam>
                </twbwa:Db_T2_WebSecurity_Application_Search>
                <Assign sap2010:WorkflowViewState.IdRef="Assign_22">
                  <Assign.To>
                    <OutArgument x:TypeArguments="twbei:IApplication_biz[]">
                      <mca:CSharpReference x:TypeArguments="twbei:IApplication_biz[]">applicationParams</mca:CSharpReference>
                    </OutArgument>
                  </Assign.To>
                  <Assign.Value>
                    <InArgument x:TypeArguments="twbei:IApplication_biz[]">
                      <mca:CSharpValue x:TypeArguments="twbei:IApplication_biz[]">applicationParams.Where(f=&gt;f.ApplicationName.Equals(Param.ApplicationName)).ToArray()</mca:CSharpValue>
                    </InArgument>
                  </Assign.Value>
                </Assign>
                <If DisplayName="Check Existing Applications" sap2010:WorkflowViewState.IdRef="If_10">
                  <If.Condition>
                    <InArgument x:TypeArguments="x:Boolean">
                      <mca:CSharpValue x:TypeArguments="x:Boolean">applicationParams.Count()!=0</mca:CSharpValue>
                    </InArgument>
                  </If.Condition>
                  <If.Then>
                    <TerminateWorkflow sap2010:WorkflowViewState.IdRef="TerminateWorkflow_2" Reason="The Application already exists.">
                      <TerminateWorkflow.Exception>
                        <InArgument x:TypeArguments="s:Exception">
                          <mca:CSharpValue x:TypeArguments="s:Exception">new Exception("The Application already exists.")</mca:CSharpValue>
                        </InArgument>
                      </TerminateWorkflow.Exception>
                    </TerminateWorkflow>
                  </If.Then>
                </If>
                <TryCatch DisplayName="AddCode TryCatch" sap2010:WorkflowViewState.IdRef="TryCatch_1">
                  <TryCatch.Try>
                    <twbwa:Db_T2_WebSecurity_Application_Add DisplayName="Application_Add" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_Application_Add_2">
                      <twbwa:Db_T2_WebSecurity_Application_Add.AddParam>
                        <InArgument x:TypeArguments="twbei:IApplication_biz">
                          <mca:CSharpValue x:TypeArguments="twbei:IApplication_biz">Param</mca:CSharpValue>
                        </InArgument>
                      </twbwa:Db_T2_WebSecurity_Application_Add.AddParam>
                      <twbwa:Db_T2_WebSecurity_Application_Add.BS>
                        <InArgument x:TypeArguments="twb:IBusinessService">
                          <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                        </InArgument>
                      </twbwa:Db_T2_WebSecurity_Application_Add.BS>
                      <twbwa:Db_T2_WebSecurity_Application_Add.RetVal>
                        <OutArgument x:TypeArguments="scg:IDictionary(x:String, x:Int32)">
                          <mca:CSharpReference x:TypeArguments="scg:IDictionary(x:String, x:Int32)">RetVal</mca:CSharpReference>
                        </OutArgument>
                      </twbwa:Db_T2_WebSecurity_Application_Add.RetVal>
                    </twbwa:Db_T2_WebSecurity_Application_Add>
                  </TryCatch.Try>
                  <TryCatch.Catches>
                    <Catch x:TypeArguments="s:Exception" sap2010:WorkflowViewState.IdRef="Catch`1_1">
                      <ActivityAction x:TypeArguments="s:Exception">
                        <ActivityAction.Argument>
                          <DelegateInArgument x:TypeArguments="s:Exception" Name="exception" />
                        </ActivityAction.Argument>
                        <Assign sap2010:WorkflowViewState.IdRef="Assign_19">
                          <Assign.To>
                            <OutArgument x:TypeArguments="s:Exception">
                              <mca:CSharpReference x:TypeArguments="s:Exception">Ex</mca:CSharpReference>
                            </OutArgument>
                          </Assign.To>
                          <Assign.Value>
                            <InArgument x:TypeArguments="s:Exception">
                              <mca:CSharpValue x:TypeArguments="s:Exception">exception</mca:CSharpValue>
                            </InArgument>
                          </Assign.Value>
                        </Assign>
                      </ActivityAction>
                    </Catch>
                  </TryCatch.Catches>
                </TryCatch>
              </Sequence>
            </FlowStep>
            <FlowStep x:Key="Update" x:Name="__ReferenceID5" sap2010:WorkflowViewState.IdRef="FlowStep_12">
              <Sequence DisplayName="Update Sequence" sap2010:WorkflowViewState.IdRef="Sequence_23">
                <Sequence.Variables>
                  <Variable x:TypeArguments="twbei:IApplication_biz[]" Name="applicationParams" />
                  <Variable x:TypeArguments="twbei:IApplication_biz" Name="applicationParam" />
                </Sequence.Variables>
                <twbwa:Db_T2_WebSecurity_Application_Search DisplayName="Application_Search" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_Application_Search_2">
                  <twbwa:Db_T2_WebSecurity_Application_Search.BS>
                    <InArgument x:TypeArguments="twb:IBusinessService">
                      <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_Application_Search.BS>
                  <twbwa:Db_T2_WebSecurity_Application_Search.RetVal>
                    <OutArgument x:TypeArguments="twbei:IApplication_biz[]">
                      <mca:CSharpReference x:TypeArguments="twbei:IApplication_biz[]">applicationParams</mca:CSharpReference>
                    </OutArgument>
                  </twbwa:Db_T2_WebSecurity_Application_Search.RetVal>
                  <twbwa:Db_T2_WebSecurity_Application_Search.SearchParam>
                    <InArgument x:TypeArguments="twbesi:IApplicationSearch_biz">
                      <mca:CSharpValue x:TypeArguments="twbesi:IApplicationSearch_biz">new ApplicationSearch_biz(){ Action="Search", ApplicationName=Param.ApplicationName, PageNumber=1, PageSize=10, SortColumn= "ApplicationID", SortType="asc"}</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_Application_Search.SearchParam>
                </twbwa:Db_T2_WebSecurity_Application_Search>
                <Assign>
                  <Assign.To>
                    <OutArgument x:TypeArguments="twbei:IApplication_biz[]">
                      <mca:CSharpReference x:TypeArguments="twbei:IApplication_biz[]">applicationParams</mca:CSharpReference>
                    </OutArgument>
                  </Assign.To>
                  <Assign.Value>
                    <InArgument x:TypeArguments="twbei:IApplication_biz[]">
                      <mca:CSharpValue x:TypeArguments="twbei:IApplication_biz[]">applicationParams.Where(f=&gt;f.ApplicationName.Equals(Param.ApplicationName)).ToArray()</mca:CSharpValue>
                    </InArgument>
                  </Assign.Value>
                  <sap2010:WorkflowViewState.IdRef>Assign_23</sap2010:WorkflowViewState.IdRef>
                </Assign>
                <If DisplayName="Check Existing Applications" sap2010:WorkflowViewState.IdRef="If_12">
                  <If.Condition>
                    <InArgument x:TypeArguments="x:Boolean">
                      <mca:CSharpValue x:TypeArguments="x:Boolean">applicationParams.Count()!=0</mca:CSharpValue>
                    </InArgument>
                  </If.Condition>
                  <If.Then>
                    <TerminateWorkflow sap2010:WorkflowViewState.IdRef="TerminateWorkflow_4" Reason="The Application already exists.">
                      <TerminateWorkflow.Exception>
                        <InArgument x:TypeArguments="s:Exception">
                          <mca:CSharpValue x:TypeArguments="s:Exception">new Exception("The Application already exists.")</mca:CSharpValue>
                        </InArgument>
                      </TerminateWorkflow.Exception>
                    </TerminateWorkflow>
                  </If.Then>
                </If>
                <Sequence DisplayName="Update Sequence" sap2010:WorkflowViewState.IdRef="Sequence_24">
                  <twbwa:Db_T2_WebSecurity_Application_GetOne DisplayName="Application_GetOne" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_Application_GetOne_1">
                    <twbwa:Db_T2_WebSecurity_Application_GetOne.ApplicationID>
                      <InArgument x:TypeArguments="x:Int32">
                        <mca:CSharpValue x:TypeArguments="x:Int32">Param.ApplicationID</mca:CSharpValue>
                      </InArgument>
                    </twbwa:Db_T2_WebSecurity_Application_GetOne.ApplicationID>
                    <twbwa:Db_T2_WebSecurity_Application_GetOne.BS>
                      <InArgument x:TypeArguments="twb:IBusinessService">
                        <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                      </InArgument>
                    </twbwa:Db_T2_WebSecurity_Application_GetOne.BS>
                    <twbwa:Db_T2_WebSecurity_Application_GetOne.RetVal>
                      <OutArgument x:TypeArguments="twbei:IApplication_biz">
                        <mca:CSharpReference x:TypeArguments="twbei:IApplication_biz">applicationParam</mca:CSharpReference>
                      </OutArgument>
                    </twbwa:Db_T2_WebSecurity_Application_GetOne.RetVal>
                  </twbwa:Db_T2_WebSecurity_Application_GetOne>
                  <If sap2010:WorkflowViewState.IdRef="If_11">
                    <If.Condition>
                      <InArgument x:TypeArguments="x:Boolean">
                        <mca:CSharpValue x:TypeArguments="x:Boolean">applicationParam!=null</mca:CSharpValue>
                      </InArgument>
                    </If.Condition>
                    <If.Then>
                      <TryCatch DisplayName="AddCode TryCatch" sap2010:WorkflowViewState.IdRef="TryCatch_2">
                        <TryCatch.Try>
                          <twbwa:Db_T2_WebSecurity_Application_Modify DisplayName="Application_Modify" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_Application_Modify_2">
                            <twbwa:Db_T2_WebSecurity_Application_Modify.BS>
                              <InArgument x:TypeArguments="twb:IBusinessService">
                                <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                              </InArgument>
                            </twbwa:Db_T2_WebSecurity_Application_Modify.BS>
                            <twbwa:Db_T2_WebSecurity_Application_Modify.ModifyParam>
                              <InArgument x:TypeArguments="twbei:IApplication_biz">
                                <mca:CSharpValue x:TypeArguments="twbei:IApplication_biz">Param</mca:CSharpValue>
                              </InArgument>
                            </twbwa:Db_T2_WebSecurity_Application_Modify.ModifyParam>
                            <twbwa:Db_T2_WebSecurity_Application_Modify.RetVal>
                              <OutArgument x:TypeArguments="scg:IDictionary(x:String, x:Int32)">
                                <mca:CSharpReference x:TypeArguments="scg:IDictionary(x:String, x:Int32)">RetVal</mca:CSharpReference>
                              </OutArgument>
                            </twbwa:Db_T2_WebSecurity_Application_Modify.RetVal>
                          </twbwa:Db_T2_WebSecurity_Application_Modify>
                        </TryCatch.Try>
                        <TryCatch.Catches>
                          <Catch x:TypeArguments="s:Exception" sap2010:WorkflowViewState.IdRef="Catch`1_2">
                            <ActivityAction x:TypeArguments="s:Exception">
                              <ActivityAction.Argument>
                                <DelegateInArgument x:TypeArguments="s:Exception" Name="exception" />
                              </ActivityAction.Argument>
                              <Assign sap2010:WorkflowViewState.IdRef="Assign_21">
                                <Assign.To>
                                  <OutArgument x:TypeArguments="s:Exception">
                                    <mca:CSharpReference x:TypeArguments="s:Exception">Ex</mca:CSharpReference>
                                  </OutArgument>
                                </Assign.To>
                                <Assign.Value>
                                  <InArgument x:TypeArguments="s:Exception">
                                    <mca:CSharpValue x:TypeArguments="s:Exception">exception</mca:CSharpValue>
                                  </InArgument>
                                </Assign.Value>
                              </Assign>
                            </ActivityAction>
                          </Catch>
                        </TryCatch.Catches>
                      </TryCatch>
                    </If.Then>
                    <If.Else>
                      <TerminateWorkflow sap2010:WorkflowViewState.IdRef="TerminateWorkflow_3" Reason="The Application is not found.">
                        <TerminateWorkflow.Exception>
                          <InArgument x:TypeArguments="s:Exception">
                            <mca:CSharpValue x:TypeArguments="s:Exception">new Exception("The Application is not found.")</mca:CSharpValue>
                          </InArgument>
                        </TerminateWorkflow.Exception>
                      </TerminateWorkflow>
                    </If.Else>
                  </If>
                </Sequence>
              </Sequence>
            </FlowStep>
          </FlowSwitch>
        </FlowDecision.True>
        <FlowDecision.False>
          <FlowStep x:Name="__ReferenceID2" sap2010:WorkflowViewState.IdRef="FlowStep_7">
            <TerminateWorkflow sap2010:WorkflowViewState.IdRef="TerminateWorkflow_1" Reason="User is not a super admin">
              <TerminateWorkflow.Exception>
                <InArgument x:TypeArguments="s:Exception">
                  <mca:CSharpValue x:TypeArguments="s:Exception">new Exception("Not authorized")</mca:CSharpValue>
                </InArgument>
              </TerminateWorkflow.Exception>
            </TerminateWorkflow>
          </FlowStep>
        </FlowDecision.False>
      </FlowDecision>
    </Flowchart.StartNode>
    <x:Reference>__ReferenceID0</x:Reference>
    <x:Reference>__ReferenceID1</x:Reference>
    <x:Reference>__ReferenceID2</x:Reference>
    <x:Reference>__ReferenceID3</x:Reference>
    <x:Reference>__ReferenceID4</x:Reference>
    <x:Reference>__ReferenceID5</x:Reference>
    <sads:DebugSymbol.Symbol>d2NDOlxQcm9qZWN0c1xUMlxUMlNlY3VyaXR5XFQyLldlYlNlY3VyaXR5XFQyLldlYlNlY3VyaXR5LkJ1c2luZXNzXFdvcmtmbG93c1xBcHBsaWNhdGlvbk5vblF1ZXJ5LnhhbWx2UQPGBA8CAQFaC1prAwGXBrQEDboEIQMBigZfD19ZAwH/BawDD64EGgMBkgTOAg+pAxoDAfcCYg/LAiICAQK0BF20BHgDAZYGtwQTtwRzAwGLBrEDEcEDPgMB1wXCAxHOAxoDAbwFzwMR3gMWAwGfBd8DEa0EHAMBkwTSAhHiAj4DAe0D4wIR7gIaAwHUA+8CEf4CFgMBuQP/AhGoAxwDAfgCYxHKAhwCAQS5Axe5A34DAfIFvgMXvgOGAgMB5QW0Axe0A3ADAdgFygMXygO9AQMBygXFAxfFA34DAb0F0gMX0gNyAwGgBdYDFdwDKQMBrQXgAxPwA0ADAfcE8QMTrAQYAwGUBNoCF9oCfgMBhgTfAhffAoYCAwH6A9UCF9UCcAMB7gPrAhfrAr0BAwHhA+YCF+YCfgMB1QPyAhfyAnIDAboD9gIV/AIpAwHGA4EDFZEDPwMBlAOZAxmkAyIDAfkCZBNvRAMB4AJwE3scAwHJAnwTqgEdAwGHAqsBE7YBRQMB8AG3ARPCARwDAdkBwwET8QEdAwGXAfIBE/0BSwMBgAH+AROJAhwCAWmKAhO4Ah0CASe5AhPJAkACAQXWA2XWA4YBAwG7BdkDG9kDjAEDAa4F7QMZ7QN9AwGSBegDGegDcgMBhQXjAxnjA2kDAfgE9AMZ9ANuAwGVBPgDF6EEIgMBsQSkBBeqBCsDAaIE9gJl9gKGAQMB0wP5Ahv5AowBAwHHA44DG44DgQEDAa0DhAMbhANsAwGhA4kDG4kDdAMBlQOhAx+hA2kDAYcDnAMfnANqAwH6AmwZbH0DAewCZxlncgMB4QJ4GXixAQMB1QJzGXN9AwHKAn8Zf4QBAwG+AoYBF6gBIgMBiAKzARmzAX8DAfwBrgEZrgFyAwHxAb8BGb8BtwEDAeUBugEZugF/AwHaAcYBGcYBhgEDAc4BzQEX7wEiAwGYAfoBGfoBiwEDAYwB9QEZ9QFyAwGBAYYCGYYCwwECAXWBAhmBAosBAgFqjQIZjQKSAQIBXpQCF7YCIgIBKMYCGcYCfwIBHLwCGbwCcgIBEcECGcECagIBBvoDG4oESAMBzwSSBB+dBCgDAbIEpARnpASGAQMBsASnBB2nBIwBAwGjBIcBGacBHgMBiQLOARnuAR4DAZkBlQIZtQIeAgEphwQhhwSHAQMB6gT9AyH9A3oDAd0EggQhggRyAwHQBJoEJZoEbwMBwQSVBCWVBHADAbMEigEfigFoAwGKAo4BHaUBKAMBlgLRAR/RAWgDAZoB1QEd7AEoAwGmAZgCH5gCaAIBKpwCHbMCKAIBNo8BH5gBKAMBsAKZAR+kAVADAZcC1gEf3wEoAwHAAeABH+sBUQMBpwGdAh+mAigCAVCnAh+yAlcCATeWAUqWAVADAb0CkgElkgF2AwGxApwBJZwBfgMBpAKhASWhAXkDAZgC3QFK3QFQAwHNAdkBJdkBdgMBwQHjASXjAX4DAbQB6AEl6AF6AwGoAaQCSqQCUAIBXaACJaACdgIBUaoCJaoCfgIBRK8CJa8CgAECATg=</sads:DebugSymbol.Symbol>
  </Flowchart>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_ApplicationUser_GetAll_3" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Assign_13" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_14" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_ApplicationUser_Remove_3" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Sequence_15" sap:VirtualizedContainerService.HintSize="264,248">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_7" sap:VirtualizedContainerService.HintSize="464,398">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_16" sap:VirtualizedContainerService.HintSize="486,522">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="ForEach`1_9" sap:VirtualizedContainerService.HintSize="242,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_ApplicationRoles_GetAll_1" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Assign_15" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_16" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_ApplicationRoles_Remove_3" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Sequence_17" sap:VirtualizedContainerService.HintSize="264,248">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_8" sap:VirtualizedContainerService.HintSize="464,398" />
      <sap2010:ViewStateData Id="Sequence_18" sap:VirtualizedContainerService.HintSize="486,522">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="ForEach`1_10" sap:VirtualizedContainerService.HintSize="242,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_ApplicationProfileData_GetAll_1" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Assign_17" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_18" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_ApplicationProfileData_Remove_3" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Sequence_19" sap:VirtualizedContainerService.HintSize="264,248">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_9" sap:VirtualizedContainerService.HintSize="464,398" />
      <sap2010:ViewStateData Id="Sequence_20" sap:VirtualizedContainerService.HintSize="486,522">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="ForEach`1_11" sap:VirtualizedContainerService.HintSize="242,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_Application_Remove_4" sap:VirtualizedContainerService.HintSize="242,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_21" sap:VirtualizedContainerService.HintSize="264,911">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="TransactionScope_1" sap:VirtualizedContainerService.HintSize="210,61">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowStep_10">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">505,409.5</av:Point>
            <av:Size x:Key="ShapeSize">210,61</av:Size>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_Application_Search_1" sap:VirtualizedContainerService.HintSize="464,22" />
      <sap2010:ViewStateData Id="Assign_22" sap:VirtualizedContainerService.HintSize="464,62" />
      <sap2010:ViewStateData Id="TerminateWorkflow_2" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="If_10" sap:VirtualizedContainerService.HintSize="464,210">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_Application_Add_2" sap:VirtualizedContainerService.HintSize="200,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_19" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Catch`1_1" sap:VirtualizedContainerService.HintSize="404,21">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="TryCatch_1" sap:VirtualizedContainerService.HintSize="464,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_22" sap:VirtualizedContainerService.HintSize="200,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowStep_11">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">30,414.5</av:Point>
            <av:Size x:Key="ShapeSize">200,51</av:Size>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_Application_Search_2" sap:VirtualizedContainerService.HintSize="464,22" />
      <sap2010:ViewStateData Id="Assign_23" sap:VirtualizedContainerService.HintSize="464,62" />
      <sap2010:ViewStateData Id="TerminateWorkflow_4" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="If_12" sap:VirtualizedContainerService.HintSize="464,210">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_Application_GetOne_1" sap:VirtualizedContainerService.HintSize="643,22" />
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_Application_Modify_2" sap:VirtualizedContainerService.HintSize="200,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_21" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Catch`1_2" sap:VirtualizedContainerService.HintSize="404,21">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="TryCatch_2" sap:VirtualizedContainerService.HintSize="418,287">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="TerminateWorkflow_3" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="If_11" sap:VirtualizedContainerService.HintSize="643,437">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_24" sap:VirtualizedContainerService.HintSize="464,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_23" sap:VirtualizedContainerService.HintSize="486,589">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowStep_12">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">270,414.5</av:Point>
            <av:Size x:Key="ShapeSize">200,51</av:Size>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowSwitch`1_1" sap:VirtualizedContainerService.HintSize="70,87">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <av:Point x:Key="ShapeLocation">335,246.5</av:Point>
            <av:Size x:Key="ShapeSize">70,87</av:Size>
            <av:PointCollection x:Key="UpdateConnector">370,333.5 370,414.5</av:PointCollection>
            <av:PointCollection x:Key="RemoveConnector">405,290 610,290 610,409.5</av:PointCollection>
            <av:PointCollection x:Key="AddConnector">335,290 130,290 130,414.5</av:PointCollection>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="TerminateWorkflow_1" sap:VirtualizedContainerService.HintSize="200,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowStep_7">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">480,220</av:Point>
            <av:Size x:Key="ShapeSize">200,22</av:Size>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowDecision_1" sap:VirtualizedContainerService.HintSize="80,87">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <av:Point x:Key="ShapeLocation">400,56.5</av:Point>
            <av:Size x:Key="ShapeSize">80,87</av:Size>
            <av:PointCollection x:Key="TrueConnector">400,100 370,100 370,246.5</av:PointCollection>
            <av:PointCollection x:Key="FalseConnector">480,100 510,100 510,190 450,190 450,231 480,231</av:PointCollection>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Flowchart_1" sap:VirtualizedContainerService.HintSize="764,649">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <av:Point x:Key="ShapeLocation">30,2.5</av:Point>
            <av:Size x:Key="ShapeSize">60,75</av:Size>
            <av:PointCollection x:Key="ConnectorLocation">90,40 440,40 440,56.5</av:PointCollection>
            <x:Double x:Key="Width">750</x:Double>
            <x:Double x:Key="Height">612.58400000000006</x:Double>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="T2.WebSecurity.Business.Workflows.ApplicationController_1" sap:VirtualizedContainerService.HintSize="804,729" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>